﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Skin_Default : System.Web.UI.Page
{
    protected void Page_PreInit(object sender, EventArgs e)
    {
        if (Request["skin"] != null)
            Page.Theme = Request["skin"];
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        Literal css = new Literal();
        css.Text = "<link type=\"text/css\" rel=\"stylesheet\" href=\"Theme/Test1/Style.css\" />";
        Page.Header.Controls.Add(css);
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Redirect("Default.aspx?skin=Default");
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        Response.Redirect("Default.aspx?skin=Test1");
    }
}
